package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.DraftContractCreateValidate;
import com.mdd.admin.validate.DraftContractUpdateValidate;
import com.mdd.admin.validate.DraftContractSearchValidate;
import com.mdd.admin.vo.DraftContractListedVo;
import com.mdd.admin.vo.DraftContractDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 草稿服务接口类
 * @author LikeAdmin
 */
public interface IDraftContractService {

    /**
     * 草稿列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<DraftContractListedVo>
     */
    PageResult<DraftContractListedVo> list(PageValidate pageValidate, DraftContractSearchValidate searchValidate);

    /**
     * 草稿详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return DraftContractDetailVo
     */
    DraftContractDetailVo detail(Integer id);

    /**
     * 草稿新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(DraftContractCreateValidate createValidate);

    /**
     * 草稿编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(DraftContractUpdateValidate updateValidate);

    /**
     * 草稿删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
